<?php
namespace app\index\controller;
use GatewayClient\Gateway;
class Socket extends Base2{
    
    function bind(){
       $client_id = I('param.client_id');
       GateWay::bindUid($client_id, $this->uid);
       
       $data['count'] = Gateway::getAllClientCount();
       $data['type'] = "countChange";
       GateWay::sendToAll(json_encode($data));
    }
}
